/*	************************************************************	*/
/*     	File Name:	Replication DoFile Women Robed in Independence			*/
/*     	Date:   	October 2024						*/
/*      Author: 	EmiLee Smart and Abbie Wood						*/
/*      Purpose:	Journal of Law and Courts	*/
/*      Input File:	independentwomenreplicationdata.dta*/	
/*      Output File: Table 2, interaction.gph, Appendix Table 1 and 2	*/						
/*	************************************************************ */

use "independentwomenreplicationdata.dta", replace
*******Table 2
**Model 1
mixed judicialindependentreverse percentlag i.year [fw=w1] || country:, vce(robust)

**Model 2
mixed judicialindependentreverse c.percentlag##genderbi age v2x_libdem v2jupurge_ord v2jupack_ord v2x_gender v2x_corr i.year [fw=w1] || country:, vce(robust)


******Interaction Figure 2
**Model 2 without weights for interaction graph
mixed judicialindependentreverse c.percentlag##genderbi age v2x_libdem v2jupurge_ord v2jupack_ord v2x_gender v2x_corr i.year || country:, vce(robust)

margins genderbi, at(percentlag=(0(84)84))
marginsplot


*****Appendix 
***Table 1
*Model 2 full with 2 year lag
mixed judicialindependentreverse c.percentlag2yr##genderbi age v2x_libdem v2jupurge_ord v2jupack_ord v2x_gender v2x_corr i.year [fw=w1] || country:, vce(robust)

***Table 2
*Model with only Interaction
mixed judicialindependentreverse c.percentlag##genderbi [fw=w1] || country:, vce(robust)




